package org.example.schoolbus;
import org.example.schoolbus.controller.RegisterController;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.HashMap;
import java.util.Map;
@SpringBootTest
public class Registertest {
    @Autowired
    private RegisterController registerController;
    @Test
    public void RegisterUser()
    {
        Map<String,Object> map=new HashMap<>();
        map.put("userstyle","0");
        map.put("username","蒋小花");
        map.put("useremail","test@gmail.com");
        map.put("userphone","123456789");
        map.put("userpassword","123456");
        System.out.println(registerController.RegisterUser(map));
    }
}
